<template>
  <div>
    <h2> user B</h2>

  </div>
</template>
<script>
export default {
  beforeRouteEnter(to,from,next){
    console.log('beforeRouteEnter',to.name);
    // console.log(this);
    next();
  },

  beforeRouteUpdate(){
    console.log(this);
    next();
  },

  beforeRouteLeave(to,form,next){
    console.log('beforeRouteLeave',form.name);
    console.log(this);
    next();
  }
}
</script>